/**
 * Created with JetBrains WebStorm.
 * User: Artem
 * Date: 26.03.13
 * Time: 11:24
 * To change this template use File | Settings | File Templates.
 */

Ext.define("Pro.view.CreateNewTeam", {
    extend: "Ext.window.Window",
    alias: "widget.createnewteam",

    title: localization.CREATE_NEW_TEAM_TITLE || "Create new Team",
    autoShow: true,

    items: [
        {
            xtype: "form",
            bodyPadding: 10,
            id: "createNewTeamForm",
            items: [
                {
                    xtype: "combobox",
                    fieldLabel: localization.CREATE_NEW_TEAM_COMPANY || "Company",
                    id: "companyComboBox",
                    store: "Companies",
                    displayField: "name",
                    queryMode: "remote",
                    name: "company"
                },
                {
                    xtype: "combobox",
                    fieldLabel: localization.CREATE_NEW_TEAM_LOCATION || "Location",
                    disabled: true,
                    id: "locationComboBox",
                    store: "Locations",
                    displayField: "name",
                    queryMode: "remote",
                    name: "location"
                },
                {
                    xtype: "combobox",
                    fieldLabel: localization.CREATE_NEW_TEAM_STAGE || "Stage",
                    disabled: true,
                    id: "stageComboBox",
                    store: "Stages",
                    displayField: "name",
                    queryMode: "remote",
                    name: "stage"
                },
                {
                    xtype: "textfield",
                    fieldLabel: localization.CREATE_NEW_TEAM_TEAM_NAME || "Team Name",
                    name: "teamName",
                    disabled: true,
                    id: "teamNameTextField",
                    name: "name"
                }
            ]
        }
    ],
    bbar: [
        "->",
        {
            xtype: "button",
            text: localization.CREATE_NEW_TEAM_CREATE || "Create",
            id: "createNewTeamButton",
            disabled: true
        }
    ]
});